package com.guigu.qingcheng.orderservice.service;

import com.guigu.qingcheng.pojo.goods.TbCategory;
import com.guigu.qingcheng.pojo.goods.TbSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("service-goods")
public interface CategoryFeign {

    @GetMapping("/goods/category/findById2")
    public TbCategory findById2(@RequestParam("id") int id);

    @GetMapping("/goods/sku/findByIds")
    public TbSku findByIds(@RequestParam("id") String id);

}
